<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>添加健身课程</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../../layui/layuiAdmin/css/admin.css" media="all">
  <style>
    .st{
      width: 270px!important;
    }
    .layui-form-label{
      width: 120px!important;
    }
  </style>
</head>
<body>

<div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin" style="padding: 20px 0 0 0;">
  <div class="layui-form-item">
    <label class="layui-form-label">课程名称</label>
    <div class="layui-input-inline st">
      <select type="text" name="courseName">
        <option value="">请选择</option>
        <option value="力量训练" >力量训练</option>
        <option value="有氧运动">有氧运动</option>
        <option value="耐力训练">耐力训练</option>
        <option value="放松性训练">放松性训练</option>
        <option value="专项技能训练" >专项技能训练</option>
        <option value="功能性训练">功能性训练</option>
        <option value="其他课程内容">其他课程内容</option>
      </select>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">教练姓名</label>
    <div class="layui-input-inline st">
      <input type="text" name="courseCoach" lay-verify="required" placeholder="请输入教练姓名" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">上课时间</label>
    <div class="layui-input-inline st">
      <input type="text" name="courseTime" id="test1" lay-verify="required" placeholder="请输入上课时间" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">班容量</label>
    <div class="layui-input-inline st">
      <input type="text" name="courseCount"  placeholder="请输入班容量" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">已报人数</label>
    <div class="layui-input-inline st">
      <input type="text" name="courseAlready" placeholder="请输入已报人数" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">发布时间</label>
    <div class="layui-input-inline st">
      <input type="text" name="courseDate" id="test2" placeholder="请输入发布时间" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button type="submit" class="layui-btn" lay-submit="" lay-filter="btn_submit">确认</button>
      <button type="reset" class="layui-btn layui-btn-primary">取消</button>
    </div>
  </div>
</div>

<script src="../../layui/layui.js"></script>
<script>
  layui.config({
    base: '../../layui/layuiAdmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'layer', 'form','layedit','laydate'], function(){
    var $ = layui.$
            ,form = layui.form
            ,layer = layui.layer
            ,laydate = layui.laydate
            ,layedit = layui.layedit;

    //上课时间日期时间选择器
    laydate.render({
      elem: '#test1'
      ,type: 'datetime'
    });

    //发布时间日期时间选择器
    laydate.render({
      elem: '#test2'
      ,type: 'datetime'
    });

  })
</script>
</body>
</html>